package shun.demo.loop;

import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import shun.demo.R;

public class LoopActivity extends Activity implements View.OnClickListener {
    /**
     * Called when the activity is first created.
     */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.loop);
        new LoopThread(this).start();
    }

    @Override
    public void onClick(View v) {
        Intent intent = new Intent(Intent.ACTION_VIEW);
        intent.setData(Uri.parse("market://details?id=net.stevemiller.android.referrertest"));
        intent.putExtra("test", "test");
        intent.putExtra("id", "1234567890");
        startActivity(intent);
    }
}
